home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
libs
/
amigametafile.lha
/
AmigaMetaFormat
/
Docs
/
AmfFunctions.doc
next >
Wrap
Text File
|
1997-05-02
|
8KB
|
177 lines
Overview over all functions that implemented. Some functions are not very
well presented in some output-formats.
Example: Some CGM-Reader draw the pie and the arc wrong, other not.
0------> x=AMF_SIZE-1 (32767)
|
|
|
V
y=AMF_SIZE-1 (32767)
.90
all angles are in degree and start is left and go anticlockwise 180 * ..0
all values are LONG 270
AmfFunctions:
FUNCTION DESCRIPTION ARGUMENTS
DrawFunctions:
0 CLEAR_REGION Fill a rectangle with xstart leftedge
the BackgroundColor ystart topedge
xend rightedge
yend bottomedge
1 *OBSOLETE*
2 *OBSOLETE*
3 LINE Draw line xstart
ystart
xend
yend
4 *OBSOLETE*
5 TEXT Write text x x-position
y y-position
alpha angle
CHARS 0-terminated
6 ELLIPSE Draw ellipse x x-position of center
y y-position of center
xsize radius in x
ysize radius in y
7 BOX Draw rectangle xstart leftedge
ystart topedge
xend rightedge
yend bottomedge
8 FILL_ELLIPSE Draw a filled ellipse see ELLIPSE
9 FILL_BOX Draw a filled rectangle see BOX
10 *OBSOLETE*
11 POLYGON Draw a polygon x,y - pars
make move to first x,y then
draw to the next x,y's
12 BITMAP_PIC Paint a bitmappicture not supported yet
13 ARC Draw a elliptical arc x x-position of center
y y-position of center
xsize radius in x
ysize radius in y
alpha start angle
beta end angle
14 MARK Draw marker x
y
15 CURVE Draw beziercurve like x1,y1 startposition
postscript-operator x2,y2 first and
'curve to' x3,y3 second holdpos
x4,y4 endposition
16 FILL_POLY Draw a filled polygon see POLYGON but it closed the
polygon
17 ROUNDED Draw a rounded rectangle xstart leftedge
ystart topedge
xend rightedge
yend bottomedge
18 PIE Draw a pie. x x-position of center
y y-position of center
xsize radius in x
ysize radius in y
alpha start angle
beta end angle
19 FILL_ROUNDED Draw a filled rounded xstart leftedge
rectangle ystart topedge
xend rightedge
yend bottomedge
20 FILL_PIE Draw a filled pie. x x-position of center
y y-position of center
xsize radius in x
ysize radius in y
alpha start angle
beta end angle
SetFunctions:
100 FONT Like 106 but fontheight see SETFONT
in metacoordinates,
in metafile will SETFONT
to FONT
101 SETFGPEN Set the forgroundpen r red-value |Byte repeated
g green-value |in every Byte
b blue-value |from ULONG
102 SETBGPEN Set the backgroundpen see forgroundpen
103 SETDRMODE Set drawmode mode 0 w/o background
1 with background
2 complement
3 invert
104 SETLINEPAT Set linepattern patnr 0 solid
1 - - -
2 -- --
3 .....
4 -.-.-
5 --.--
105 SETLINEWIDTH Set linewidth size width of line
106 SETFONT Set font size height of font in point
style fontstyle
0-plain, 1-underline,
2-bold, 4-italic
CHARS 0 terminated
107 SETFILLPAT Set fillpattern patnr 0 solid
1 ////
2 \\\\
3 ||||
4 ====
5 XXXX
6 ++++
108 SETMARKSIZE Set the size of marker size height of marker
109 SETMARKTYPE Set type of marker type 0 x
1 filled square
2 outline dreieck
3 outline square
4 o
5 +
6 outline karo
110 SETDPI Set the resolution of xdpi resolution in x
output-device, only for ydpi resolution in y
for channel=1 or 4 both in points per inch
The initial resolution
for channel1 and 4 are
72 dpi, change only if
you know what you do!
GetFunctions:
200 GETFONTHEIGHT calcs the height of the alpha angle
choiced font in virtual
points (0 to 32767)
201 GETSTRINGLENGHT calcs the lenght of the alpha angle
string in virtual points CHARS 0 terminated
(0 to 32767)
202 GETBASELINE calcs the height of alpha angle
baseline in virtual points
(0 to 32767)